#pragma once
#include <windows.h>

class XSync
{
	CRITICAL_SECTION m_cs;
public:
	XSync();
	~XSync();
	void Lock();
	void Unlock();
};

class XScopeSync
{
	XSync * m_SyncObj;
public:
	XScopeSync(XSync * obj);
	~XScopeSync();
};
